{% extends "page/index.html" %}
{% load cache %}

{% block css %}
    <link type="text/css" rel="stylesheet" media="all" href="/medias/css/groups.css" />
    <link type="text/css" rel="stylesheet" media="all" href="/medias/css/schedule.css" />
{% endblock %}

{% block content %}
{{ block.super }}

<table>
  <tr>
    {% for h in hours %}
    <td class="hour">{{ h }}</td>
    {% endfor %}
  </tr>
    {% for scene in stacks %}
    <tr>
      <th>{{ scene.scene }}</th>
      {% for stack in scene.stack %}
      {% if stack.colspan != 0 %}
      <td colspan="{{ stack.colspan }}" class="genre {% if stack.day %}{% firstof stack.group.class_css 'other' %}{% endif %}{% if stack.conf %} conf{% endif %}"><a href="{{ stack.group.get_absolute_url }}">{% if stack.conf %}Conférence : {% endif %}<strong>{% firstof stack.name stack.group.name %}</strong><br/>{{ stack.description }}</a></td>
      {% endif %}
      {% endfor %}
    </tr>
    {% endfor %}
  <tr>
    {% for h in hours %}
    <td class="hour">{{ h }}</td>
    {% endfor %}
  </tr>
</table>
{% endblock %}


{% block admin %}
    <a href="/admin/schedule/concert/">Administration</a>
{% endblock %}
